package oop3;

/**
 * @author oldliu
 * @since 1.0
 */
public class StuArray3 {
    public static void main(String[] args) {
        Student[]sr=new Student[5];
        for(int i=0;i<sr.length;i++){
            sr[i]=new Student();
            sr[i].name="王"+i;
            sr[i].java=80+i;
        }
        for (int i = 0; i < sr.length; i++) {
            sr[i].showInfo();
        }
        Calc c=new Calc();
        int avg = c.calcJavaAvg3(sr);
        System.out.println("java平均分是："+avg);

    }
}
